package com.sunyard.authorization.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel
public class FetchToken {

    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank(message = "用户名不能为空")
    private String username;

    @ApiModelProperty(value = "密码", required = true)
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "组织Id编号", required = true)
    @NotBlank(message = "组织编号不能为空")
    private String orgId;

    @ApiModelProperty(value = "资源Id", required = true)
    private String applicationId;
}
